#include "screen_display.h"
#include <QApplication>
#include <QWidget>
#include <QPushButton>
#include <QPalette>
#include "mpushbutton.h"
#include "mainwindow.h"
#include "findwindow.h"
#include "closewindow.h"
#include "formwindow.h"//表格布局
#include "gridwindow.h"
#include "my_calculator.h"
#include "windowxp.h"
#include "my_notepad.h"
#include "uimainwindow.h"

int main(int argc, char *argv[]) {

    QApplication a(argc, argv);


#if 0   //11_7代码
    QApplication a(argc, argv);
    QWidget w;

    // 创建按钮并设置图标
    QPushButton btn(QIcon("://1.jpg"), "开机", &w);
    btn.setGeometry(50,50,200,200);
    btn.setIconSize(QSize(70, 70));  // 设置图标大小

    QPushButton btn2(QIcon("://1.jpg"), "关机", &w);
    btn2.setGeometry(200,300,200,200);
    btn2.setIconSize(QSize(70, 70));  // 设置图标大小

    w.show();

    return a.exec();
#endif


#if 0
    //分析出来：应该实例化自己的窗口对象
    //QWidget w;
    //MPushButton *btn = new MPushButton(&w);
    MainWindow w;
    w.show();
#endif

#if 1//实现的单独模块,各个界面
    //FindWindow w;
    //w.show();

    //CloseWindow k;
    //k.show();

    //FormWindow m;
    //m.show();

    //GridWindow n;
    //n.show();

    //利用connect函数用按钮关闭界面
    //MainWindow w;
    //w.show();
#endif

    //我的计算器
    //my_calculator w;
    //w.show();

    //学习使用主界面mainwindow
    //WindowXP xp;
    //xp.show();

    //我的记事本
    //my_notepad z;
    //z.show();

    //ui界面
    UIMainWindow kk;
    kk.show();



    return a.exec();

}
